@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <div class="ziliao">
        <div class="ziliao_b " style="margin-bottom:10px;"><p>温馨提醒:3天内未处理系统将默认自动退款</p>
        </div>

        @foreach ($listRefund as $order)
            <div class="tuikuan">
                <div class="tk01">
                    <h2><i>{{$order->refund->add_time}}</i>{{$order->service_type_tex}}</h2>
                    <p>订单编号：{{$order->order_number}}</p>
                    <p>下单用户：{{$order->merchant->me_username}}</p>
                </div>
                <div class="tk02">
                    申请退款金额：<span class="col02">{{$order->refund->master_refund_amount}}元</span><em>

                        @if ($order->status->have_arbitrate)
                            @if ($order->refund->arbitrating)
                                <a href="{{url("refund/arbitrate/{$order->refund->id}")}}" class="but09">客服介入仲裁中</a>
                            @elseif ($order->refund->arbitrate_agree)
                                <a href="{{url("refund/arbitrate/{$order->refund->id}")}}" class="but10">仲裁支持退款</a>
                            @elseif ($order->refund->arbitrate_disagree)
                                <a href="{{url("refund/arbitrate/{$order->refund->id}")}}" class="but11">仲裁不支持退款</a>
                            @endif
                        @elseif ($order->status->have_refund)
                            @if ($order->refund->refunding)
                                <a href="{{url("refund/detail/{$order->refund->id}")}}" class="but08">退款申请中</a>
                            @elseif ($order->refund->refund_agree)
                                <a href="{{url("refund/detail/{$order->refund->id}")}}" class="but10">您已同意退款</a>
                            @elseif ($order->refund->refund_disagree)
                                <a href="{{url("refund/detail/{$order->refund->id}")}}" class="but11">您不同意退款</a>
                            @endif
                        @endif

                    </em></div>
            </div>
        @endforeach

    </div>
@endsection